package com.gz.furnitures.dao;

import com.gz.furnitures.entity.Furn;

import java.util.List;

public interface FurnDao {
    public List<Furn> queryFurns();

    public int addFurn(Furn furn);

    public int deleteFurnById(int Id);

    public Furn queryFurnById(int Id);

    public int updateFurn(Furn furn);

    //得到总共有多少数据
    public int getTotalRow();

    //获取当前页的数据
    public List<Furn> getPageItems(int begin, int pageSize);

    public int getTotalRowByName(String name);

    public List<Furn> getPageItemsByName(int begin,int pageSize,String name);
}
